<?php
namespace app\admin\controller;
use app\admin\controller\Base;
class Order extends Base{
    
    public function index(){
        //搜索 
          $data=input('get.');
          $sdata=[];
         // print_r($data);exit;
         //out_trade_no
         if(!empty($data['out_trade_no'])){
               $sdata['out_trade_no']=['like','%'.$data['out_trade_no'].'%'];
         } 
        
        $orders=model("Order")->getNormalOrders($sdata);
        
        return $this->fetch("",[
       "orders"=>$orders,
        'out_trade_no'=>empty($data['out_trade_no'])? '':$data['out_trade_no'],
        ]);
    }
    
    
    
}

